package org.hugh.space.dao;

import java.util.List;

import org.hugh.space.entity.FileChunkEntity;
import org.hugh.space.entity.FileEntity;
import org.hugh.space.entity.UserEntity;






public interface FileDao extends BaseDao<String, FileEntity> {
	
	
	void save(final FileEntity file, byte[] content);
	
	List<FileChunkEntity> createChunks(FileEntity file,	byte[] content);
	
	public byte[] getFileContent(FileEntity file); 
	
	List<FileEntity> getByUser(final String userId);
	
	List<FileEntity> getAll();
	
	FileEntity getFileEntityById(String id);

}
